<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>花样链接卡</title>
    <style type="text/css">
        .a{
            height: 300px;
            width: 300px;
            border: 2px solid black;
        }
        .link {

            height: 100px;
            width: 100px;
            background-color: pink;
            float: left;
            text-align: center;
            line-height: 85px;
        }
        .link:hover{
            background-color: purple;
        }
        #link2{
            position: relative;
            left: 100px;
        }
        #link3{
            position: relative;
            top: 200px;
            right: 200px;
        }
        #link4{
            position: relative;
            top: 100px;
            left: 200px;
        }
    </style>
</head>
<body>
<div class="a">
    <div id="link1" class="link"><a href="2.html">连接1</a></div>
    <div id="link2"class="link"><a href="2.html">连接2</a></div>
    <div id="link3"class="link"><a href="2.html">连接3</a></div>
    <div id="link4"class="link"><a href="2.html">连接4</a></div>
    <div id="link5"class="link"><a href="2.html">连接5</a></div>
</div>>
</body>
</html>